package com.isdepci.project.reference.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.reference.mapper.ReferenceDataFugitiveGwpMapper;
import com.isdepci.project.reference.domain.ReferenceDataFugitiveGwp;
import com.isdepci.project.reference.service.IReferenceDataFugitiveGwpService;

/**
 * GWP数据Service业务层处理
 *
 * @author isdepci
 * @date 2023-08-22
 */
@Service
public class ReferenceDataFugitiveGwpServiceImpl implements IReferenceDataFugitiveGwpService
{
    @Autowired
    private ReferenceDataFugitiveGwpMapper referenceDataFugitiveGwpMapper;

    /**
     * 查询GWP数据
     */
    @Override
    public ReferenceDataFugitiveGwp selectReferenceDataFugitiveGwpById(Long id)
    {
        return referenceDataFugitiveGwpMapper.selectReferenceDataFugitiveGwpById(id);
    }

    /**
     * 查询GWP数据列表
     */
    @Override
    public List<ReferenceDataFugitiveGwp> selectReferenceDataFugitiveGwpList(ReferenceDataFugitiveGwp referenceDataFugitiveGwp)
    {
        return referenceDataFugitiveGwpMapper.selectReferenceDataFugitiveGwpList(referenceDataFugitiveGwp);
    }

    /**
     * 新增GWP数据
     */
    @Override
    public int insertReferenceDataFugitiveGwp(ReferenceDataFugitiveGwp referenceDataFugitiveGwp)
    {
        return referenceDataFugitiveGwpMapper.insertReferenceDataFugitiveGwp(referenceDataFugitiveGwp);
    }

    /**
     * 修改GWP数据
     */
    @Override
    public int updateReferenceDataFugitiveGwp(ReferenceDataFugitiveGwp referenceDataFugitiveGwp)
    {
        return referenceDataFugitiveGwpMapper.updateReferenceDataFugitiveGwp(referenceDataFugitiveGwp);
    }

    /**
     * 批量删除GWP数据
     */
    @Override
    public int deleteReferenceDataFugitiveGwpByIds(Long[] ids)
    {
        return referenceDataFugitiveGwpMapper.deleteReferenceDataFugitiveGwpByIds(ids);
    }

    /**
     * 删除GWP数据信息
     */
    @Override
    public int deleteReferenceDataFugitiveGwpById(Long id)
    {
        return referenceDataFugitiveGwpMapper.deleteReferenceDataFugitiveGwpById(id);
    }
}
